package com.mo.lib.utils.view

import com.jeremyliao.liveeventbus.LiveEventBus

/**
 * @ author：mo
 * @ data：2022/8/4:13:56
 * @ 功能：
 */
inline fun <reified T> sendData(key:String,t: T) {
    LiveEventBus.get<T>(key).post(t)
}
inline fun <reified T> T.sendData(key:String) {
    LiveEventBus.get<T>(key).post(this)
}